import myaxios from '../myAxios'
import BASEURL from '../baseUrl'
const baseUrl = BASEURL.BMDURL
const movieApi = {
    // 电影列表
    movieList(params){
        let url = baseUrl+'/movie-infos'
        return myaxios.get(url,params)
    },
    //电影模糊查询
    movieNamequery(params){
        let url = baseUrl+'/movie-infos/name'
        return myaxios.post(url,params)
    },
    //删除电影
    deleteMovie(params){
        let url = baseUrl + '/movie-info/del'
        return myaxios.post(url,params)
    },
    // 查询电影类型
    MovieType(){
        let url = baseUrl + '/movie-types'
        return myaxios.get(url)
    },
    // 新增电影
    MovieAdd(params){
        let url = baseUrl + '/movie-info/add'
        return myaxios.post(url,params)
    },
    queryMovie(params){
        let url = baseUrl + '/movie-info/query'
        return myaxios.get(url,params)

    },
    updateMovie(params){
        let url = baseUrl + '/movie-info/update'
        return myaxios.post(url,params)
    }
    
    
}
export default movieApi